			<div id="main">
				<div id="content">
					<div class="header">
						<h2>Manage Characters</h2>
					</div>
					<div class="content">
						<?php if(isset($message)): ?>
							<span style="color:green"><?=$message?></span>
						<?php else: ?>
						<?php if(!is_null($characters)): ?>
						<?php foreach($characters as $id => $i): ?>
						<script type="text/javascript">
							animatedcollapse.addDiv('<?=$i['ID']?>', 'fade=1,height=550px,group=characters')

							animatedcollapse.init()
						</script>
						<a href="javascript:animatedcollapse.toggle('<?=$i['ID']?>')" rel="toggle[characters]"><?=$i['name']?></a>
						<div id='<?=$i['ID']?>' style='display:none'>
							<table class='character'>
								<tr>
									<td colspan='2'><img src=<?=base_url() . 'resources/img/' . $i['image']?> /></td>
								</tr>
								<tr>
									<td width='50%'><strong>Level <?=$i['level']?> <?=$i['class']?></strong></td>
									<td width='50%'>HP: <strong><?=$i['curlife']?> / <?=$i['maxlife']?></strong></td>
								</tr>
								<tr>
									<td>Strength: <strong><?=$i['strength']?></strong></td>
									<td><?php if($i['class'] == 'Fighter'): ?>Rage: <?php else: ?>MP: <?php endif;?><strong><?=$i['curmana']?> / <?=$i['maxmana']?></strong></td>
								</tr>
								<tr>
									<td>Agility: <strong><?=$i['agility']?></strong></td>
									<td>Armor: <strong><?=$i['armor']?></strong></td>
								</tr>
								<tr>
									<td>Vitality: <strong><?=$i['vitality']?></strong></td>
									<td>Min Attack: <strong><?=$i['minattack']?></strong></td>
								</tr>
								<tr>
									<td>Spirit: <strong><?=$i['spirit']?></strong></td>
									<td>Max Attack: <strong><?=$i['maxattack']?></strong></td>
								</tr>
								<tr>
									<td>Energy: <strong><?=$i['energy']?></strong></td>
									<td>Gold: <strong><?=$i['gold']?></strong></td>
								</tr>
							</table>
							<?=form_open('account/manage_characters')?>
								<?=form_hidden('charId', $i['ID'])?>
								<div class="buttons">
									<?=form_submit('action','Delete')?>
									<?=form_submit('action','Login')?>
								</div>
							<?=form_close()?>
						</div>
						<br />
						<?php endforeach;?>
						<?php else: ?>
							<strong>You don't have any characters.</strong><br /><br />
						<?php endif;?>
						<?php endif;?>
						<hr />
						<a href="profile">Back to profile</a>
					</div>
					<div class="footer"></div>
				</div>
